﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net.Sockets;
using System.Net;

namespace Conexion
{
    public class ListenerTCP
    {
        public static TcpListener obtenerTcpListener(string ip, int puerto){ 
            IPAddress adress = IPAddress.Parse(ip);
            IPEndPoint ipe = new IPEndPoint(adress, puerto);
            return new TcpListener(ipe);
        }
    }
}
